//package com.haiyou.common.config;
//
//import com.haiyou.common.interceptor.EntranceInterceptor;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
//
///**
// * 配置类(xml)
// *
// * @author chenzeke
// * @date 2018/11/22 17:19
// */
//@Configuration
//public class WebMvcConfig extends WebMvcConfigurerAdapter {
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(new EntranceInterceptor()).addPathPatterns("/**");
//        super.addInterceptors(registry);
//    }
//}
